package com.example.factory;

import com.sun.javafx.runtime.SystemProperties;

import java.util.Properties;
import java.util.ResourceBundle;

/**
 * Created by Administrator on 2016/12/31.
 */
public class PropertiesFactory {

    private static ResourceBundle bundle;

    static {
        bundle = ResourceBundle.getBundle("service-config");
    }

    public static String getValue(String key) {

        String value = bundle.getString(key);

        return value;
    }
}
